package com.shg.web.ztest;

import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.shg.bean.Author;
import com.shg.service.AuthorService;

public class AuthorServiceTest {

	static AuthorService authorService;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		ApplicationContext context=new ClassPathXmlApplicationContext("basics-application.xml");
		authorService = (AuthorService)context.getBean("authorServiceBean");
	}


	
	@Test
	public void getNewAuthor(){
//		List<Author> list = authorService.getNewAuthor(10);
//		for(Author author:list){
//			System.out.println(author.getUsers().getUserName());
//		}
	}
	

}
